<?php

class Post_Model_ClassRegistry
{
	public static function getClassContainer($class)
	{
		switch ($class)
		{
		case 'note': return 'notes';
		case 'forum': return 'forum';
		case 'wall': return 'wall';
		case 'comment': return 'comments';
		}
		return NULL;
	}
	public static function getClassEntry($class)
	{
		switch ($class)
		{
		case 'note': return 'post';
		case 'forum': return 'thread';
		case 'wall': return 'post';
		case 'comment': return 'post';
		}
		return NULL;
	}
	public static function getClassFromContainer($classContainer)
	{
		switch ($classContainer)
		{
		case 'notes': return 'note';
		case 'forum': return 'forum';
		case 'wall': return 'wall';
		case 'comments': return 'comment';
		}
		return NULL;
	}
}
